package scuts.core.instances;

import scuts.core.classes.Eq;

class EqDate extends Eq<Date> {
  // boilerplate, should be avoided
  public static var get(getInstance, null):EqDate;
  
  static function getInstance ()
  {
    if (get == null) get = new EqDate();
    return get;
  }
  function new () {}
  //
  override public function eq (a:Date, b:Date):Bool {
    return a.getTime() == b.getTime();
  }
  
}